<div class="content">
    <div class="div-top">
        <span style="font-size: 20px;float:left;">{{menu_name}}</span>
        <div style="float:right;">
            <button ng-repeat="but in buttons" ng-click="operate(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
        </div>
    </div>

    <form class="div-find form-inline" >
        <div class="form-group">
            <label class="form-label">学年：</label>
            <select class="form-control" ng-model="form.fk_year" >
                <option value="" class="" selected="selected">==请选择==</option>
                <option ng-repeat="data in propList | filter:{prop_key:'STU_YEAR'}" value="{{data.prop_pk}}">{{data.real_value}}--{{data.real_value+1}}学年</option>
            </select>
        </div>
        <div class="form-group">
            <label class="form-label">学期：</label>
            <select class="form-control" ng-model="form.fk_team" >
                <option value="" class="" selected="selected">==请选择==</option>
                <option ng-repeat="data in propList | filter:{prop_key:'STU_TERM'}" value="{{data.prop_pk}}">{{data.prop_value}}</option>
            </select>
            </td>
        </div>
        <div class="form-group">
            <label class="form-label">任务名称：</label>
            <input ng-model="form.task_name" type="text" class="form-control"/>
        </div>
        <button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
    </form>

    <div class="div-table">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAll($event.target)" /></th>
                <th column="year_name" class="sorting" ng-click="order($event.target)">学年</th>
                <th column="team_name" class="sorting" ng-click="order($event.target)">学期</th>
                <th column="task_name" class="sorting" ng-click="order($event.target)">任务名称</th>
                <th column="start_date" class="sorting" ng-click="order($event.target)">开始日期</th>
                <th column="end_date" class="sorting" ng-click="order($event.target)">结束日期</th>
                <th column="grade_name" class="sorting" ng-click="order($event.target)">年级</th>
                <th column="task_ps" class="sorting" ng-click="order($event.target)">备注</th>
                <th column="task_ps" class="sorting" ng-click="order($event.target)">操作</th>
            </tr>
            </thead>

            <tbody ng-switch on="page.current_num">
            <tr ng-switch-when="0">
                <td colspan="100" >查询无记录</td>
            </tr>
            <tr ng-repeat="row in rows" ng-click="optData($event.currentTarget)">
                <td>
                    <input type="checkbox" name="dataPk" value="{{row.id}}" />
                </td>
                <td>{{row.year_name}}</td>
                <td>{{row.team_name}}</td>
                <td>{{row.task_name}}</td>
                <td>{{row.start_date}}</td>
                <td>{{row.end_date}}</td>
                <td>{{row.grade_name}}</td>
                <td>{{row.task_ps}}</td>
                <td>
                    <button type="button" ng-click="edit(row)" class="btn btn-link">
                        <i class="fe fe-bar-chart-2"></i>修改
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>